package tests;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Input;
import org.newdawn.slick.SlickException;

public class SomeTest extends BasicGame {
	
	private static final int resX = 1024;
	private static final int resY = 768;
	private int mx, my;
	
	
	    public SomeTest() {
	        super("SomeTest");
	    }
	    
	    @Override
	    public void init(GameContainer container) throws SlickException {
	    	
	    }

	    @Override
	    public void update(GameContainer container, int delta) throws SlickException {
	    	
	    }

	    @Override
	    public void render(GameContainer container, Graphics g) throws SlickException {
	    	
	    }
	    
	    @Override
	    public void keyPressed(int key, char c) {
	    	if(key == Input.KEY_ESCAPE){
	    		System.out.println("Exit");
	    		System.exit(0);
	    	}
	    	if(key == Input.KEY_R){
	    		System.out.println("Exit");
	    	}
		}

	    
	    public static void main(String[] args) {
	        try {
	            AppGameContainer app = new AppGameContainer(new SomeTest());
	            app.setDisplayMode(resX, resY, false);
	            app.start();
	        } catch (SlickException e) {
	            e.printStackTrace();
	        }
	    }
}